package cn.jdy.plugins.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import cn.jdy.authority.entity.User;
import cn.jdy.common.bo.BaseEntry;

/**
 * 直播实体类
 */
@Entity
public class Live extends BaseEntry {
	private static final long serialVersionUID = 1996535695280105630L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;// 主键

	private String name; // 直播名称

	private String appid; // 机构名称
	
	private String userid;//线路所有人id
	private String classes;//直播类别
	
	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	@OneToOne
	@JoinColumn(name = "userid", insertable = false, updatable = false)
	private User user;
	
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	private String liveurl;// 直播线路

	private String mainid;// 主线路id
	
	private String mainurl;// 主线路
	
	private String mainname;//主线路名 

	private String backid;//  备用线路id
	
	private String backurl;// 备用线路
	
	private String backname;//备用线路名 

	private String fromDate;// 直播开始时间
	
	private String toDate;// 直播结束时间

	private String status;// 播放状态 0 片花 1 直播 2回播 

	private String theme;// 主题

	private String template; // 模版

	private String background;// 直播背景图片

	private String videologo;// 视频logo图片
	@Column(columnDefinition = "longtext")
	private String context;// 直播描述
	
	@Column(columnDefinition = "longtext")
	private String context2;// 直播描述2
	
	@Column(columnDefinition = "longtext")
	private String context3;// 直播描述3
	
	@Column(columnDefinition = "longtext")
	private String context4;// 直播描述4

	public String getContext4() {
		return context4;
	}

	public void setContext4(String context4) {
		this.context4 = context4;
	}

	private String attention;// 是否关注 0 是/ 1否
	
	//private String isad;// 是否显示广告注意是进入直播时的全屏广告 0 是/ 1否
	private String ispay;// 是否开启收费直播 0是免费/1是收费/2密码授权/3审核授权
	private String paySum; //需要的支付的金额
	
	private String adurl;// 广告地址

	private String isnumber;// 是否显示在线人数 0 是/ 1否

	private String number;// 初始在线人数

	private String redpacket;// 是否开启红包 0 是/ 1否
	
	private String isreward ;// 是否开启打赏 0 是/ 1否
	private String isrobot; // 是否开启机器人留言 0是/1不开 空也代表

	public String getIsrobot() {
		return isrobot;
	}

	public void setIsrobot(String isrobot) {
		this.isrobot = isrobot;
	}

	public String getIsreward() {
		return isreward;
	}

	public void setIsreward(String isreward) {
		this.isreward = isreward;
	}
	private int liveLevel;// 级别 0，1，2，3
	
	private String shexplain;// 审核说明
	
	private String moviurl;// 片花

	private String backmoviurl;// 回放

	private String description;// 分享描述

	private String shareurl;// 分享logo

	private String inviteurl;// 邀请图片

	private String codeurl;// 关注的二维码
	
	private String codedescription;// 关注的二维码的描述
	
	private String currentStatus;  //存储相关视频id
	
	private String zburl;        //直播地址

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}
	
	public String getMainurl() {
		return mainurl;
	}

	public void setMainurl(String mainurl) {
		this.mainurl = mainurl;
	}

	public String getBackurl() {
		return backurl;
	}

	public void setBackurl(String backurl) {
		this.backurl = backurl;
	}


	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public String getBackground() {
		return background;
	}

	public void setBackground(String background) {
		this.background = background;
	}

	public String getVideologo() {
		return videologo;
	}

	public void setVideologo(String videologo) {
		this.videologo = videologo;
	}

	public String getAttention() {
		return attention;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public void setAttention(String attention) {
		this.attention = attention;
	}

	public String getIsnumber() {
		return isnumber;
	}

	public void setIsnumber(String isnumber) {
		this.isnumber = isnumber;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getRedpacket() {
		return redpacket;
	}

	public void setRedpacket(String redpacket) {
		this.redpacket = redpacket;
	}

	public String getMoviurl() {
		return moviurl;
	}

	public void setMoviurl(String moviurl) {
		this.moviurl = moviurl;
	}

	public String getBackmoviurl() {
		return backmoviurl;
	}

	public void setBackmoviurl(String backmoviurl) {
		this.backmoviurl = backmoviurl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getShareurl() {
		return shareurl;
	}

	public void setShareurl(String shareurl) {
		this.shareurl = shareurl;
	}

	public String getInviteurl() {
		return inviteurl;
	}

	public void setInviteurl(String inviteurl) {
		this.inviteurl = inviteurl;
	}

	public String getCodeurl() {
		return codeurl;
	}

	public void setCodeurl(String codeurl) {
		this.codeurl = codeurl;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getFromDate() {
		return fromDate;
	}

	public void setFromDate(String fromDate) {
		this.fromDate = fromDate;
	}

	public String getToDate() {
		return toDate;
	}

	public void setToDate(String toDate) {
		this.toDate = toDate;
	}

	public String getMainname() {
		return mainname;
	}

	public void setMainname(String mainname) {
		this.mainname = mainname;
	}

	public String getBackname() {
		return backname;
	}

	public void setBackname(String backname) {
		this.backname = backname;
	}

	public String getMainid() {
		return mainid;
	}

	public void setMainid(String mainid) {
		this.mainid = mainid;
	}

	public String getBackid() {
		return backid;
	}

	public void setBackid(String backid) {
		this.backid = backid;
	}
	
	public String getLiveurl() {
		return liveurl;
	}

	public void setLiveurl(String liveurl) {
		this.liveurl = liveurl;
	}

	public String getAdurl() {
		return adurl;
	}

	public void setAdurl(String adurl) {
		this.adurl = adurl;
	}

	public String getCodedescription() {
		return codedescription;
	}

	public void setCodedescription(String codedescription) {
		this.codedescription = codedescription;
	}

	public String getCurrentStatus() {
		return currentStatus;
	}

	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}

	public String getZburl() {
		return zburl;
	}

	public void setZburl(String zburl) {
		this.zburl = zburl;
	}

	public String getIspay() {
		return ispay;
	}

	public void setIspay(String ispay) {
		this.ispay = ispay;
	}

	public String getPaySum() {
		return paySum;
	}

	public void setPaySum(String paySum) {
		this.paySum = paySum;
	}

	public int getLiveLevel() {
		return liveLevel;
	}

	public void setLiveLevel(int liveLevel) {
		this.liveLevel = liveLevel;
	}

	public String getShexplain() {
		return shexplain;
	}

	public void setShexplain(String shexplain) {
		this.shexplain = shexplain;
	}

	public String getContext2() {
		return context2;
	}

	public void setContext2(String context2) {
		this.context2 = context2;
	}

	public String getContext3() {
		return context3;
	}

	public void setContext3(String context3) {
		this.context3 = context3;
	}
	
	
}
